package xyz.eden.gateway.springcloud.admin.component.route.nacos;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * Nacos 数据源
 */
@Data
@Slf4j
@Configuration
public class NacosDataSourceProperties {

    @Value(value = "${gateway.route.nacos.config.server-addr}")
    private String serverAddr;
    @Value(value = "${gateway.route.nacos.config.namespace}")
    private String namespace;
    @Value(value = "${gateway.route.nacos.config.group}")
    private String group = "DEFAULT_GROUP";
    private int timeout = 3000;
    @Value(value = "${gateway.route.nacos.config.file-extension:yaml}")
    private String fileExtension;
    @Value(value = "${gateway.route.nacos.config.data-id}")
    private String dataId;

}
